package br.com.tiaspider;

import java.util.Scanner;
import java.util.Timer;

import br.com.tiaspider.spiders.TiaSpider;
import br.com.tiaspider.spiders.task.TiaSpiderTimerTask;
import static java.lang.System.*;
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		
		Scanner uis = new Scanner( in );
		
		out.print( "TIA:" );
		String login = uis.next();

		out.print( "SENHA:" );
		String senha = uis.next();
		
		out.print( "DELAY DE ATUALIZACAO (em segundos):" );

		int delay = uis.nextInt();
		
		TiaSpider spider = new TiaSpider( login , senha , "001" );
		Timer tt = new Timer();
		tt.schedule( new TiaSpiderTimerTask( spider ) , 500 , delay * 1000 );
	}

}
